package com.me.modules.questionnaire.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.me.modules.questionnaire.dao.AnAnswerDao;
import com.me.modules.questionnaire.entity.AnAnswerEntity;
import com.me.modules.questionnaire.service.AnAnswerService;



@Service("anAnswerService")
public class AnAnswerServiceImpl implements AnAnswerService {
	@Autowired
	private AnAnswerDao anAnswerDao;

	@Override
	public AnAnswerEntity queryObject(Integer id){
		return anAnswerDao.queryObject(id);
	}

	@Override
	public List<AnAnswerEntity> queryList(Map<String, Object> map){
		return anAnswerDao.queryList(map);
	}

    @Override
    public List<AnAnswerEntity> queryListByBean(AnAnswerEntity entity) {
        return anAnswerDao.queryListByBean(entity);
    }

	@Override
	public int queryTotal(Map<String, Object> map){
		return anAnswerDao.queryTotal(map);
	}

	@Override
	public int save(AnAnswerEntity anAnswer){


		return anAnswerDao.save(anAnswer);
	}

	@Override
	public int update(AnAnswerEntity anAnswer){
        return anAnswerDao.update(anAnswer);
	}

	@Override
	public int delete(Integer id){
        return anAnswerDao.delete(id);
	}

	@Override
	public int deleteBatch(Integer[] ids){
        return anAnswerDao.deleteBatch(ids);
	}

}
